
<%@page import="java.util.List"%>
<%@page import="com.pojos.Inbox"%>
<%@page import="java.util.Iterator"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Consultant</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="mainPan">
  <div id="leftPan">
  	<div id="leftTopPan">
		<a href="index.html"><img src="images/logo.gif" title="Consultant" alt="Consultant" width="160" height="39" border="0" /></a> </div>
	<ul>
			<li class=" "></li>
			<li><html:link  action="/ViewProblems2">View Problems </html:link></li>
			<li><html:link  action="/Inbox5">Inbox</html:link></li>
			<li><html:link href="Logout.jsp">Logout</html:link></li>
		</ul>
		
		<h2><br /></h2>
		<!--ul class="linkone">
			<li><a href="#">pit tellus, at</a></li>
			<li><a href="#">iaculis ante</a></li>
			<li><a href="#">ante eget</a></li>
			<li><a href="#">massa. Vestibu</a></li>
			<li><a href="#">lum facilisis.</a></li>
			<li><a href="#">Quisque vel est.</a></li>
			<li><a href="#">Donec ante</a></li>
			<li><a href="#">velit, eleifend</a></li>
			<li><a href="#">ucont cont,</a></li>
			<li><a href="#">ucont cont,</a></li>
			<li><a href="#">rhoncus</a></li>
		</ul-->
  </div>
  
  <div id="rightPan">
  	<h1><font face="Monotype Corsiva">WelCome</font><br /><font face="Monotype Corsiva"><span>To<br />   
    Our Site</span></font> </h1>
	<h2>Welcome Lecturer<br /></h2>
<h3>Inbox<br /></h3>

	<p>&nbsp; <span class="magedacolortext"></span></p>
	<p class="bottompadding">
<logic:notEmpty name="result">

<html:form  action="reply">
<table border=1 align="center">
<tr><td><td>From</td><td>Text</td><td>Date</td></tr>


<%List list=(List)request.getAttribute("result");
Inbox inbox=new Inbox();
Iterator itr=list.iterator();
String buffer=new String();

while(itr.hasNext())
{
inbox=(Inbox)itr.next();
 %>
 <tr>
<td><html:radio property="fromid" value="<%=inbox.getFromid() %>"></html:radio></td>
<td><%=inbox.getFromid() %></td>
<td><%= inbox.getText()%></td>
<td><%= inbox.getDate1()%></td>

</tr>
<%} %>


<tr><td><html:submit property="reply" value="Reply"></html:submit></td></tr>
</table>
</html:form>
</logic:notEmpty>


<br /></p><logic:notEmpty name="msg">
<font size="4"><bean:write name="msg"/></font>

</logic:notEmpty><br /><br /><br /><p class="bottompadding"><br /></p><br /></div>
</div><div id="footermainPan"><div id="footerPan">s<br /><br /></div>
</div>

</body>
</html>

